package com.care.doctor.remote;

import com.care.common.core.domain.Result;
import com.care.doctor.common.domain.DTOLabel;
import com.care.doctor.remote.factory.LabelRemoteServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "LabelRemoteService" , name = "care-doctor",fallbackFactory = LabelRemoteServiceFallbackFactory.class)
public interface LabelRemoteService {
    @GetMapping("/label/listAll")
    public Result listAll();
    @GetMapping("/findByLabelId/{labelId}")
    public Result<DTOLabel> findByLabelId(@PathVariable("labelId") Integer labelId);
}
